#ifndef GROUPDIALOG_H
#define GROUPDIALOG_H
#include <QSqlQueryModel>
#include <QDialog>

namespace Ui {
class groupDialog;
}

class groupDialog : public QDialog
{
    Q_OBJECT
    
public:
    explicit groupDialog(QWidget *parent = 0);
    ~groupDialog();
    void getFaculty();
    
private:
    Ui::groupDialog *ui;
    QSqlQueryModel *model;
    QSqlQueryModel *facultyModel;

    int getIdFaculty(const QString &facName);

public slots:
    void BtnEnabled(QString str);
    void AddGroup();
    void DeleteGroup();
    void getGroup(QString facName);
};

#endif // GROUPDIALOG_H
